﻿@model UserViewModel
@{
	var EnableMoney = ConfigHelper.Get<UserConfig>().EnableMoney;
	var EnableExp = ConfigHelper.Get<UserConfig>().EnableExp;
	var EnablePoint = ConfigHelper.Get<UserConfig>().EnablePoint;
	var EnableValidNum = ConfigHelper.Get<UserConfig>().EnableValidNum;
	var PointName = ConfigHelper.Get<UserConfig>().PointName;
}
<form class="layui-form" asp-controller="User" asp-action="ViewUser" method="post">
	<div class="layui-collapse">
		<div class="layui-colla-item">
			<h2 class="layui-colla-title layui-elem-quote">会员信息</h2>
			<div class="layui-colla-content layui-form layui-show" wid100>
				<div class="layui-form-item">
					<label class="layui-form-label">会员头像</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">@Html.Raw(Utility.GetPicHtml(Model.Users.UserFace))</div>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">会员ID</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">@Model.Users.UserID</div>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">会员名</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">@Model.Users.UserName</div>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">会员状态</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">@Model.Users.UserStatusText</div>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">所属会员组</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">@Model.GroupName</div>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">会员权限</label>
					<div class="layui-input-block">
						@if (Model.Users.IsInheritGroupRole)
						{
							<div class="layui-input-inline layui-input-company">
								继承会员组权限
							</div>
						}
						else
						{
							<div class="layui-input-inline layui-input-company">
								单独权限设置
							</div>
						}
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">会员类型</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">@Model.Users.UserTypeText</div>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">登录次数</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">@Model.Users.LoginTimes</div>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">最后登录IP</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">@Model.Users.LoginIP</div>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">最后登录时间</label>
					<div class="layui-input-block">
						@{
							if (Model.Users.LoginTime.HasValue)
							{
								<div class="layui-input-inline layui-input-company">
									@Model.Users.LoginTime.Value.ToString("yyyy-MM-dd HH:mm:ss")
								</div>
							}
						}
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">注册日期</label>
					<div class="layui-input-block">
						@{
							if (Model.Users.RegTime.HasValue)
							{
								<div class="layui-input-inline layui-input-company">
									@Model.Users.RegTime.Value.ToString("yyyy-MM-dd")
								</div>
							}
						}
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">加入日期</label>
					<div class="layui-input-block">
						@{
							if (Model.Users.JoinTime.HasValue)
							{
								<div class="layui-input-inline layui-input-company">
									@Model.Users.JoinTime.Value.ToString("yyyy-MM-dd")
								</div>
							}
						}
					</div>
				</div>
				@if (EnableMoney)
				{
					<div class="layui-form-item">
						<label class="layui-form-label">可用金额</label>
						<div class="layui-input-block">
							<div class="layui-input-inline layui-input-company">
								@Model.Users.Balance.ToDecimal().ToString("0.00")
							</div>
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">消费的金额</label>
						<div class="layui-input-block">
							<div class="layui-input-inline layui-input-company">
								@Model.Users.ConsumeMoney.ToInt32().ToString()
							</div>
						</div>
					</div>
				}
				@if (EnableExp)
				{
					<div class="layui-form-item">
						<label class="layui-form-label">可用积分</label>
						<div class="layui-input-block">
							<div class="layui-input-inline layui-input-company">
								@Model.Users.UserExp.ToInt32().ToString()
							</div>
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">消费的积分</label>
						<div class="layui-input-block">
							<div class="layui-input-inline layui-input-company">
								@Model.Users.ConsumeExp.ToInt32().ToString()
							</div>
						</div>
					</div>
				}
				@if (EnablePoint)
				{
					<div class="layui-form-item">
						<label class="layui-form-label">可用@{@PointName}</label>
						<div class="layui-input-block">
							<div class="layui-input-inline layui-input-company">
								@Model.Users.UserPoint.ToInt32().ToString()
							</div>
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">消费的@{@PointName}</label>
						<div class="layui-input-block">
							<div class="layui-input-inline layui-input-company">
								@Model.Users.ConsumePoint.ToInt32().ToString()
							</div>
						</div>
					</div>
				}
				@if (EnableValidNum)
				{
					<div class="layui-form-item">
						<label class="layui-form-label">剩余天数</label>
						<div class="layui-input-block">
							<div class="layui-input-inline layui-input-company">
								@Model.Users.EndDays.ToInt32().ToString()
							</div>
						</div>
					</div>
				}
				<div class="layui-form-item">
					<label class="layui-form-label">会员签名</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">
							@Model.Users.Sign
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="layui-colla-item">
			<h2 class="layui-colla-title layui-elem-quote">个人信息</h2>
			<div class="layui-colla-content layui-form layui-show" wid100>
				<div class="layui-form-item">
					<label class="layui-form-label">姓名</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">
							@Model.Contacter.TrueName
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">称谓</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">
							@Model.Contacter.Title
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">通讯区域</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">
							@Model.Contacter.Province@Model.Contacter.City@Model.Contacter.Area
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">详细地址</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">
							@Model.Contacter.Address
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">邮政编码</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">
							@Model.Contacter.ZipCode
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">Email</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">
							@Model.Contacter.Email
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">手机号码</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">
							@Model.Contacter.Mobile
						</div>
					</div>
				</div>
				<div class="layui-form-item layui-hide">
					<label class="layui-form-label">住宅电话</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">
							@Model.Contacter.HomePhone
						</div>
					</div>
				</div>
				<div class="layui-form-item layui-hide">
					<label class="layui-form-label">办公电话</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">
							@Model.Contacter.OfficePhone
						</div>
					</div>
				</div>
				<div class="layui-form-item layui-hide">
					<label class="layui-form-label">传真号码</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">
							@Model.Contacter.Fax
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">QQ</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">
							@Model.Contacter.QQ
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">微信</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">
							@Model.Contacter.ICQ
						</div>
					</div>
				</div>
				<div class="layui-form-item layui-hide">
					<label class="layui-form-label">个人主页</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">
							@Model.Contacter.Homepage
						</div>
					</div>
				</div>
				<div class="layui-form-item layui-hide">
					<label class="layui-form-label">紧急联系人1</label>
					<div class="layui-input-block">
						<div class="layui-col-xs6 layui-col-sm6 layui-col-md6">
							姓名: @Model.EmergencyContactList[0].Name
						</div>
						<div class="layui-col-xs6 layui-col-sm6 layui-col-md6">
							电话: @Model.EmergencyContactList[0].Tel
						</div>
						<div class="layui-col-xs6 layui-col-sm6 layui-col-md6">
							身份证: @Model.EmergencyContactList[0].IdCard
						</div>
						<div class="layui-col-xs6 layui-col-sm6 layui-col-md6">
							与本人关系: @Model.EmergencyContactList[0].Relationship
						</div>
						<div class="layui-col-xs12 layui-col-sm12 layui-col-md12">
							家庭住址: @Model.EmergencyContactList[0].HomeAddress
						</div>
						<div class="layui-col-xs12 layui-col-sm12 layui-col-md12">
							单位名称: @Model.EmergencyContactList[0].CompanyName
						</div>
						<div class="layui-col-xs12 layui-col-sm12 layui-col-md12">
							单位地址: @Model.EmergencyContactList[0].CompanyAddress
						</div>
					</div>
				</div>
				<div class="layui-form-item layui-hide">
					<label class="layui-form-label">紧急联系人2</label>
					<div class="layui-input-block">
						<div class="layui-col-xs6 layui-col-sm6 layui-col-md6">
							姓名: @Model.EmergencyContactList[1].Name
						</div>
						<div class="layui-col-xs6 layui-col-sm6 layui-col-md6">
							电话: @Model.EmergencyContactList[1].Tel
						</div>
						<div class="layui-col-xs6 layui-col-sm6 layui-col-md6">
							身份证: @Model.EmergencyContactList[1].IdCard
						</div>
						<div class="layui-col-xs6 layui-col-sm6 layui-col-md6">
							与本人关系: @Model.EmergencyContactList[1].Relationship
						</div>
						<div class="layui-col-xs12 layui-col-sm12 layui-col-md12">
							家庭住址: @Model.EmergencyContactList[1].HomeAddress
						</div>
						<div class="layui-col-xs12 layui-col-sm12 layui-col-md12">
							单位名称: @Model.EmergencyContactList[1].CompanyName
						</div>
						<div class="layui-col-xs12 layui-col-sm12 layui-col-md12">
							单位地址: @Model.EmergencyContactList[1].CompanyAddress
						</div>
					</div>
				</div>
				@{
					if (Model.ContacterOptionFieldList != null)
					{
						foreach (var item in Model.ContacterOptionFieldList)
						{
							<div class="layui-form-item">
								<label class="layui-form-label">@item.FieldAlias</label>
								<div class="layui-input-block">
									<div class="layui-input-inline layui-input-company">
										@await Component.InvokeAsync("FieldViewControl", new FieldControlViewModel { Prefix = "Contacter", ModelID = 100, IsAdminManage = true, DataSource = Model.ContacterOption, FieldName = item.FieldName, FieldValue = item.DefaultValue, FieldType = item.FieldType, FieldLevel = item.FieldLevel, FieldAlias = item.FieldAlias, Tips = item.Tips, Description = item.Description, Disabled = item.Disabled, EnableNull = item.EnableNull, Settings = item.Settings })
									</div>
								</div>
							</div>
						}
					}
				}
			</div>
		</div>
		<div class="layui-colla-item layui-hide">
			<h2 class="layui-colla-title layui-elem-quote">其他信息</h2>
			<div class="layui-colla-content layui-form layui-show" wid100>
				<div class="layui-form-item">
					<label class="layui-form-label">身份证号</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">
							@Model.Contacter.IDCard
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">身份证图片</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">
							@Html.Raw(Utility.GetPicHtml(Model.Contacter.IDCardPic))
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">户籍区域</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">
							@Model.Contacter.IDCardProvince@Model.Contacter.IDCardCity@Model.Contacter.IDCardArea
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">户籍地址</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">
							@Model.Contacter.IDCardAddress
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">开户行卡号</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">
							@Model.Contacter.BankCard
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">银行卡图片</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">
							@Html.Raw(Utility.GetPicHtml(Model.Contacter.BankCardPic))
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">开户行名称</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">
							@Model.Contacter.BankName
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">持卡人姓名</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">
							@Model.Contacter.BankAccount
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">出生日期</label>
					<div class="layui-input-block">
						@{
							if (Model.Contacter.Birthday.HasValue)
							{
								<div class="layui-input-inline layui-input-company">
									@Model.Contacter.Birthday.Value.ToString("yyyy-MM-dd")
								</div>
							}
						}
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">籍贯</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">
							@Model.Contacter.NativePlace
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">民族</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">
							@Model.Contacter.Nation
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">性别</label>
					<div class="layui-input-block">
						@if (Model.Contacter.Sex == 1)
						{
							<div class="layui-input-inline layui-input-company">男</div>
						}
						else
						{
							<div class="layui-input-inline layui-input-company">女</div>
						}
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">婚姻</label>
					<div class="layui-input-block">
						@switch (Model.Contacter.Marriage)
						{
							case 0:
								<div class="layui-input-inline layui-input-company">保密</div>
								break;
							case 1:
								<div class="layui-input-inline layui-input-company">未婚</div>
								break;
							case 2:
								<div class="layui-input-inline layui-input-company">已婚</div>
								break;
							case 3:
								<div class="layui-input-inline layui-input-company">离异</div>
								break;
						}
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">学历</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">@ViewBag.Education</div>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">毕业学校</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">
							@Model.Contacter.GraduateFrom
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">月收入</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">@ViewBag.Income</div>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">生活爱好</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">
							@Model.Contacter.InterestsOfLife
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">文化爱好</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">
							@Model.Contacter.InterestsOfCulture
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">娱乐爱好</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">
							@Model.Contacter.InterestsOfAmusement
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">体育爱好</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">
							@Model.Contacter.InterestsOfSport
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">其他爱好</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">
							@Model.Contacter.InterestsOfOther
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">家庭情况</label>
					<div class="layui-input-block">
						<div class="layui-col-xs6 layui-col-sm6 layui-col-md6">
							家庭人口数: @Model.FamilyEntity.Num
						</div>
						<div class="layui-col-xs6 layui-col-sm6 layui-col-md6">
							家庭电话: @Model.FamilyEntity.Tel
						</div>
						<div class="layui-col-xs6 layui-col-sm6 layui-col-md6">
							家庭月收入: @Model.FamilyEntity.Income
						</div>
						<div class="layui-col-xs6 layui-col-sm6 layui-col-md6">
							人均月收入: @Model.FamilyEntity.AveIncome
						</div>
						<div class="layui-col-xs12 layui-col-sm12 layui-col-md12">
							邮政编码: @Model.FamilyEntity.ZipCode
						</div>
						<div class="layui-col-xs12 layui-col-sm12 layui-col-md12">
							家庭地址: @Model.FamilyEntity.Address
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="layui-colla-item layui-hide">
			<h2 class="layui-colla-title layui-elem-quote">工作信息</h2>
			<div class="layui-colla-content layui-form layui-show" wid100>
				<div class="layui-form-item">
					<label class="layui-form-label">单位名称</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">
							@Model.Contacter.Company
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">所属部门</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">
							@Model.Contacter.Department
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">职位</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">
							@Model.Contacter.Position
						</div>

					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">负责业务</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">
							@Model.Contacter.Operation
						</div>

					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">单位规模</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">
							@Model.Contacter.CompanySize
						</div>

					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">单位类型</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">
							@Model.Contacter.CompanyType
						</div>

					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">单位地址</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">
							@Model.Contacter.CompanyAddress
						</div>

					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">单位行业</label>
					<div class="layui-input-block">
						<div class="layui-input-inline layui-input-company">
							@Model.Contacter.CompanyIndustry
						</div>
					</div>
				</div>
			</div>
		</div>
		@{
			if (Model.ShowCompany)
			{
				@await Component.InvokeAsync("CompanyView", new CompanyViewModel { Company = Model.Company, CompanyOption = Model.CompanyOption, CompanyOptionFieldList = Model.CompanyOptionFieldList, CompanyMemberInfo = Model.CompanyMemberInfo })
			}
		}
		@if (EnableMoney)
		{
			<div class="layui-colla-item">
				<h2 class="layui-colla-title layui-elem-quote">资金明细</h2>
				<div class="layui-colla-content layui-show">
					<table id="tblUserMoneyList" lay-filter="tblUserMoneyList"></table>
				</div>
			</div>
		}
		@if (EnableExp)
		{
			<div class="layui-colla-item">
				<h2 class="layui-colla-title layui-elem-quote">积分明细</h2>
				<div class="layui-colla-content layui-show">
					<table id="tblUserExpList" lay-filter="tblUserExpList"></table>
				</div>
			</div>
		}
		@if (EnablePoint)
		{
			<div class="layui-colla-item">
				<h2 class="layui-colla-title layui-elem-quote">@{@PointName}明细</h2>
				<div class="layui-colla-content layui-show">
					<table id="tblUserPointList" lay-filter="tblUserPointList"></table>
				</div>
			</div>
		}
		@if (EnableValidNum)
		{
			<div class="layui-colla-item">
				<h2 class="layui-colla-title layui-elem-quote">有效期明细</h2>
				<div class="layui-colla-content layui-show">
					<table id="tblUserValidList" lay-filter="tblUserValidList"></table>
				</div>
			</div>
		}
	</div>
</form>
@section scripts{
	<script type="text/javascript">
		layui.use(['form', 'table', 'element'], function () {
			var table = layui.table;
			var element = layui.element;
			var form = layui.form;
			var SearchKeyword = "@Model.Users.UserName";
			var SearchParam = { "SearchName": "UserName", "SearchKeyword": SearchKeyword };

			//加载资金明细
			table.render({
				elem: '#tblUserMoneyList'
				, url: '/Admin/Finance/GetBankrollItemList'
				, where: SearchParam
				, request: {
					pageName: 'PageNum' //页码的参数名称，默认：page
					, limitName: 'PageSize' //每页数据量的参数名，默认：limit
				}
				, cols: [[
					{ field: 'DateAndTime', width: 170, title: '交易时间', align: 'center', templet: function (d) { return showDateTime(d.DateAndTime); } },
					{ field: 'Money', width: 100, title: '交易金额', align: 'center', templet: function (d) { return GetUserMoneyHtml(d.Money); } },
					{ field: 'MoneyType', width: 100, title: '交易方式', align: 'center', templet: function (d) { return GetUserMoneyTypeText(d.MoneyType); } },
					{ field: 'Bank', width: 100, title: '银行名称', align: 'center' },
					{ field: 'Remark', minWidth: 200, title: '备注', align: 'left' },
					{ field: 'Status', width: 50, title: '确认', align: 'center', templet: function (d) { return GetUserMoneyStatusHtml(d.Status); } }
				]]
				, parseData: function (res) { //res 即为原始返回的数据
					return {
						"code": 0, //解析接口状态
						"msg": "", //解析提示文本
						"count": res.RecordTotal, //解析数据长度
						"data": res.RowList //解析数据列表
					};
				}
				, limits: [10, 15, 20, 25, 50, 100]
				, limit: 15
				, page: true
			});
			//加载积分明细
			table.render({
				elem: '#tblUserExpList'
				, url: '/Admin/Finance/GetExpLogList'
				, where: SearchParam
				, request: {
					pageName: 'PageNum' //页码的参数名称，默认：page
					, limitName: 'PageSize' //每页数据量的参数名，默认：limit
				}
				, cols: [[
					{ field: 'LogTime', width: 170, title: '消费时间', align: 'center', templet: function (d) { return showDateTime(d.LogTime); } },
					{ field: 'ExpNum', width: 100, title: '积分', align: 'center', templet: function (d) { return GetUserExpHtml(d.ExpNum, d.IncomePayout); } },
					{ field: 'IP', width: 100, title: 'IP', align: 'center'},
					{ field: 'Inputer', width: 100, title: '操作员', align: 'center' },
					{ field: 'Remark', minWidth: 200, title: '备注', align: 'left' }
				]]
				, parseData: function (res) { //res 即为原始返回的数据
					return {
						"code": 0, //解析接口状态
						"msg": "", //解析提示文本
						"count": res.RecordTotal, //解析数据长度
						"data": res.RowList //解析数据列表
					};
				}
				, limits: [10, 15, 20, 25, 50, 100]
				, limit: 15
				, page: true
			});
			//加载金币明细
			table.render({
				elem: '#tblUserPointList'
				, url: '/Admin/Finance/GetPointLogList'
				, where: SearchParam
				, request: {
					pageName: 'PageNum' //页码的参数名称，默认：page
					, limitName: 'PageSize' //每页数据量的参数名，默认：limit
				}
				, cols: [[
					{ field: 'LogTime', width: 170, title: '消费时间', align: 'center', templet: function (d) { return showDateTime(d.LogTime); } },
					{ field: 'Point', width: 100, title: '点数', align: 'center', templet: function (d) { return GetUserPointHtml(d.Point, d.IncomePayOut); } },
					{ field: 'Times', width: 100, title: '重复次数', align: 'center' },
					{ field: 'IP', width: 100, title: 'IP', align: 'center' },
					{ field: 'Inputer', width: 100, title: '操作员', align: 'center' },
					{ field: 'Remark', minWidth: 150, title: '备注', align: 'left' }
				]]
				, parseData: function (res) { //res 即为原始返回的数据
					return {
						"code": 0, //解析接口状态
						"msg": "", //解析提示文本
						"count": res.RecordTotal, //解析数据长度
						"data": res.RowList //解析数据列表
					};
				}
				, limits: [10, 15, 20, 25, 50, 100]
				, limit: 15
				, page: true
			});
			//加载有效期明细
			table.render({
				elem: '#tblUserValidList'
				, url: '/Admin/Finance/GetValidLogList'
				, where: SearchParam
				, request: {
					pageName: 'PageNum' //页码的参数名称，默认：page
					, limitName: 'PageSize' //每页数据量的参数名，默认：limit
				}
				, cols: [[
					{ field: 'LogTime', width: 170, title: '记录时间', align: 'center', templet: function (d) { return showDateTime(d.LogTime); } },
					{ field: 'ValidNum', width: 100, title: '天数', align: 'center', templet: function (d) { return GetUserValidHtml(d.ValidNum, d.IncomePayout); } },
					{ field: 'IP', width: 100, title: 'IP', align: 'center' },
					{ field: 'Inputer', width: 100, title: '操作员', align: 'center' },
					{ field: 'Remark', minWidth: 200, title: '备注', align: 'left' }
				]]
				, parseData: function (res) { //res 即为原始返回的数据
					return {
						"code": 0, //解析接口状态
						"msg": "", //解析提示文本
						"count": res.RecordTotal, //解析数据长度
						"data": res.RowList //解析数据列表
					};
				}
				, limits: [10, 15, 20, 25, 50, 100]
				, limit: 15
				, page: true
			});
		});
	</script>
}